package com.sunda.spmsoversea.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 海外仓采购订单表明细
 * </p>
 *
 * @author Wayne
 * @since 2021-12-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OVERSEA_PURCHASE_ORDER_DTL")
@ApiModel(value="OverseaPurchaseOrderDtl对象", description="海外仓采购订单表明细")
public class OverseaPurchaseOrderDtl implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "采购订单明细自增ID")
    @TableId(value = "AUTO_ID_PURCHASE_ORDER", type = IdType.AUTO)
    private Integer autoIdPurchaseOrder;

    @ApiModelProperty(value = "采购凭证号PO")
    @TableField("SAP_PURCHASE_ORDER")
    private String sapPurchaseOrder;

    @ApiModelProperty(value = "采购凭证号PO行号")
    @TableField("SAP_PURCHASE_ORDER_ITEM")
    private String sapPurchaseOrderItem;

    @ApiModelProperty(value = "DN交货日期")
    @TableField("DELIVERY_DATE")
    private String deliveryDate;

    @ApiModelProperty(value = "收货/转入工厂")
    @TableField("WERKS_RECEIVE")
    private String werksReceive;

    @ApiModelProperty(value = "收货/转入仓库地址")
    @TableField("WHS_LOCATION_CODE_RECEIVE")
    private String whsLocationCodeReceive;

    @ApiModelProperty(value = "物料编号")
    @TableField("MATERIAL_NO")
    private String materialNo;

    @ApiModelProperty(value = "物料描述")
    @TableField("MATERIAL_ZH_DESC")
    private String materialZhDesc;

    @ApiModelProperty(value = "基本单位")
    @TableField("BASIC_UNIT")
    private String basicUnit;

    @ApiModelProperty(value = "交货数量/应收基本单位数量")
    @TableField("RECEIVABLE_QTY_BASIC_UNIT")
    private Double receivableQtyBasicUnit;

    @ApiModelProperty(value = "退货标识")
    @TableField("RETURN_MARK")
    private String returnMark;

    @ApiModelProperty(value = "数据状态(默认0能被SAP更新数据；1禁止更新数据；)")
    @TableField("DATA_STATUS")
    private String dataStatus;

    @ApiModelProperty(value = "数据版本号")
    @TableField("DATA_VERSION")
    private Integer dataVersion;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;


}
